import {
	http
} from '@/api/index.js'

export function allConnectionForIndex(data) {
	return http({
		url: '/all/connection',
		data: data,
		method: 'post'
	})
};

export function selectConnection(data) {
	return http({
		url: '/connection',
		data: data,
		method: 'post'
	})
};

export function addConnection(data) {
	return http({
		url: '/add/connection',
		data: data,
		method: 'post'
	})
};

export function delConnection(data) {
	return http({
		url: '/del/connection',
		data: data,
		method: 'post'
	})
};

export function testConnection(data) {
	return http({
		url: '/test/connection',
		data: data,
		method: 'post'
	})
};